from time import sleep

from page_locators.career_management_locator import CareerManagementLocator as CML
from common.base_page import BasePage 
from test_datas.career_manage_datas import *
from test_datas.pic_data import *

class CareerManagement(BasePage):
    
    def __init__(self, driver):
        super().__init__(driver)

    def teacherinfo_management_click(self, username, password):
        self.input(CML.username_loc, username, '用户名输入失败截图')
        self.input(CML.password_loc, password, '密码输入失败截图')
        code = self.get_code(CML.captcha_img, '验证码图片定位', 'src')
        self.input(CML.captcha, code, '验证码输入')
        self.click(CML.loginsbt, '登录按钮点击失败截图')
        sleep(1)
        self.switch_window()
        sleep(1)
        self.click(CML.teacher_manage, "教职工信息管理点击跳转")
        sleep(1)

    def career_manage_click(self):
        self.click(CML.career_management, "入职管理定位点击")

    def add_teacher_click(self):
        self.career_manage_click()
        sleep(1)
        self.click(CML.add_teacher, "添加教师点击跳转")

    def name_none(self):
        self.add_teacher_click()
        self.input(CML.name, '', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "18100000000", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def name_space(self):
        self.input(CML.name, ' ', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "18100000000", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def name_error1(self):
        self.input(CML.name, big_string, "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "18100000000", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def name_error2(self):
        self.input(CML.name, cheles21, "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "18100000000", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def name_success1(self):
        self.input(CML.name, cheles20, "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "18100000000", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def name_success2(self):
        self.add_teacher_click()
        self.input(CML.name, cheles19, "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "18100000000", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def name_success3(self):
        self.add_teacher_click()
        self.input(CML.name, '亚瑟', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13000000012", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def delete_list1(self):
        self.click(CML.dle, "列表第一个删除按钮定位点击")
        self.click(CML.continue_del, "继续删除按钮定位点击")
        self.click(CML.check_know, "我已知晓定位点击")
        self.click(CML.sure_dle, '确定删除按钮定位点击')

    def delete_teacher(self):
        name = self.get_text(CML.list1_name, "列表第一条名称标签定位")
        if name == "亚瑟":
            self.click(CML.del_ys, "点击亚瑟的删除按钮")
        elif name == "程咬金":
            self.click(CML.del_cyj, "点击程咬金的删除按钮")
        elif name == "德莱文":
            self.click(CML.del_dlw, "点击德莱文的删除按钮")
        elif name == "米莱迪":
            self.click(CML.del_mld, "米莱迪的删除按钮定位点击")
        elif name == "黄子轩":
            self.click(CML.del_hzx, "黄子轩的删除按钮定位点击")
        elif name == "张翼德":
            self.click(CML.del_zyd, "张翼德的删除按钮定位点击")
        elif name == "张玄德":
            self.click(CML.del_zxd, "张玄德的删除按钮定位点击")
        elif name == "张胖德":
            self.click(CML.del_zpd, "张胖德的删除按钮定位点击")
        elif name == "黄子凡":
            self.click(CML.del_hzf, "黄子凡的删除按钮定位点击")
        elif name == "黄子涛":
            self.click(CML.del_hzt, "黄子涛的删除按钮定位点击")
        elif name == "光辉":
            self.click(CML.del_gh, "光辉的删除按钮定位点击")
        elif name == "牛魔":
            self.click(CML.del_nm, "牛魔的删除按钮定位点击")
        else:
            self.logger.error("教师定位失败!")
        self.click(CML.continue_del, "继续删除按钮定位点击")
        self.click(CML.check_know, "我已知晓定位点击")
        self.click(CML.sure_dle, '确定删除按钮定位点击')

    def delete_add_teacherinfo(self):
        self.career_manage_click()
        self.delete_list1()

    def phone_none(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_space(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, " ", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_error1(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, big_string, "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_error2(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "131285224801", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_error3(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13128aa2480", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_error4(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13128汉字2480", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_error5(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "1324783552", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_error6(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "23247835521", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def phone_success(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13957001584", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def category_faculty_none(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.input(CML.phone, "13955646506", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13536694327", "手机号定位输入")
        self.input(CML.idcard, big_string, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error2(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13837932426", "手机号定位输入")
        self.input(CML.idcard, id19, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error3(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13847832990", "手机号定位输入")
        self.input(CML.idcard, id18_a1, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error4(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15072940520", "手机号定位输入")
        self.input(CML.idcard, id18_Chinese1, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error5(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13965578859", "手机号定位输入")
        self.input(CML.idcard, id17, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error6(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15198929900", "手机号定位输入")
        self.input(CML.idcard, '1', "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_error7(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13687947322", "手机号定位输入")
        self.input(CML.idcard, id18_false, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_success1(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13705287280", "手机号定位输入")
        self.input(CML.idcard, id18, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def idcard_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13877272336", "手机号定位输入")
        self.input(CML.idcard, id18_X, "身份证输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def emile_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13721529880", "手机号定位输入")
        self.input(CML.emile, big_string, "邮箱输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def emile_error2(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13958050103", "手机号定位输入")
        self.input(CML.emile, big_string_emile, "邮箱输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def emile_error3(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13539435053", "手机号定位输入")
        self.input(CML.emile, emile_321, "邮箱输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def emile_success1(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247835021", "手机号定位输入")
        self.input(CML.emile, emile_320, "邮箱输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def emile_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13547835521", "手机号定位输入")
        self.input(CML.emile, emile_319, "邮箱输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def emile_success3(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13947835521", "手机号定位输入")
        self.input(CML.emile, emile_phone, "邮箱输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def church_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13277835521", "手机号定位输入")
        self.input(CML.church, big_string, "教籍输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def church_error2(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13249835521", "手机号定位输入")
        self.input(CML.church, cheles21, "教籍输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def church_success1(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13147835521", "手机号定位输入")
        self.input(CML.church, cheles20, "教籍输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def church_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13243835521", "手机号定位输入")
        self.input(CML.church, cheles19, "教籍输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def former_name_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247865521", "手机号定位输入")
        self.input(CML.former_name, big_string, "曾用名输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def former_name_error2(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247835561", "手机号定位输入")
        self.input(CML.former_name, cheles21, "曾用名输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def former_name_success1(self):
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247035521", "手机号定位输入")
        self.input(CML.former_name, cheles20, "曾用名输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def former_name_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247837521", "手机号定位输入")
        self.input(CML.former_name, cheles19, "曾用名输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def national_success(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247835525", "手机号定位输入")
        self.click(CML.national, "民族下拉框定位点击")
        self.click(CML.hanzu, "汉族定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def date_birth_input(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247835531", "手机号定位输入")
        self.input(CML.date_birth, '1996-09-16', "出生日期定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def date_birth_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247835421", "手机号定位输入")
        self.click(CML.date_birth, "出生日期下拉框点击")
        self.click(CML.before_year, "前一年点击")
        self.click(CML.before_month, "上一月点击")
        self.click(CML.day, "日定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def political_landscape_choose(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13248835521", "手机号定位输入")
        self.click(CML.political_landscape, "政治面貌下拉框定位点击")
        self.click(CML.league_member, "共青团员定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def title_choose(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13747835521", "手机号定位输入")
        self.click(CML.title, "职称下拉框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def native_place_click(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247035521", "手机号定位输入")
        self.click(CML.native_place, "籍贯下拉框定位点击")
        self.move_mouse_slowly()
        self.click(CML.xian, "西安市定位点击")
        self.click(CML.lianhuqu, "莲湖区定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def current_address_click(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247815521", "手机号定位输入")
        self.click(CML.current_address, "现住址下拉框定位点击")
        self.click(CML.shanxi, "陕西省定位点击")
        self.click(CML.xian, "西安市定位点击")
        self.click(CML.lianhuqu, "莲湖区定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def full_current_address_input(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13247435521", "手机号定位输入")
        self.click(CML.current_address, "现住址下拉框定位点击")
        self.click(CML.shanxi, "陕西省定位点击")
        self.click(CML.xian, "西安市定位点击")
        self.click(CML.lianhuqu, "莲湖区定位点击")
        self.input(CML.full_current_address, '陕西省西安市莲湖区星火路22号老城根G park', "现住详细地址定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def qq_input_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13647835521", "手机号定位输入")
        self.input(CML.QQ, big_string, "QQ输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def qq_input_error2(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15111335769", "手机号定位输入")
        self.input(CML.QQ, cheles21, "QQ输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def qq_input_success1(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13679877626", "手机号定位输入")
        self.input(CML.QQ, cheles20, "QQ输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def qq_input_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15724583429", "手机号定位输入")
        self.input(CML.QQ, cheles19, "QQ输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def qq_input_success3(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15774958976", "手机号定位输入")
        self.input(CML.QQ, '1635384156', "QQ输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def wechat_input_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15295962161", "手机号定位输入")
        self.input(CML.wechat, big_string, "微信输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def wechat_input_error2(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15860413080", "手机号定位输入")
        self.input(CML.wechat, cheles21, "微信输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def wechat_input_success1(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15872384057", "手机号定位输入")
        self.input(CML.wechat, cheles20, "微信输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def wechat_input_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13960557461", "手机号定位输入")
        self.input(CML.wechat, cheles19, "微信输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def wechat_input_success3(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13981955076", "手机号定位输入")
        self.input(CML.wechat, '1635384156', "微信输入框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def source_faculty_click(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15072057869", "手机号定位输入")
        self.click(CML.source_faculty, "教职工来源下拉框定位选择")
        self.click(CML.demobilization, '复员定位点击')
        self.click(CML.sure, "确定按钮点击定位")

    def use_people_way(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13516616453", "手机号定位输入")
        self.click(CML.use_people_way, "用人形式下拉框定位选择")
        self.click(CML.personnel_agency, '人事代理定位点击')
        self.click(CML.sure, "确定按钮点击定位")

    def sign_contract(self):
        self.add_teacher_click()
        self.input(CML.name, '米莱迪', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13732497217", "手机号定位输入")
        self.click(CML.sign_contract, "用人形式下拉框定位选择")
        self.click(CML.labor_contract, '人事代理定位点击')
        self.click(CML.sure, "确定按钮点击定位")

    def enter_date_input(self):
        self.add_teacher_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13564737813", "手机号定位输入")
        self.input(CML.enter_date, '2020-09-16', "出生日期定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def enter_date_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13741691064", "手机号定位输入")
        self.click(CML.enter_date, "出生日期下拉框点击")
        self.click(CML.before_year, "前一年点击")
        self.click(CML.before_month, "上一月点击")
        self.click(CML.day, "日定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def staff_num_error1(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13726616833", "手机号定位输入")
        self.input(CML.staff_num, big_string, "教职工号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def staff_num_error2(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15803343485", "手机号定位输入")
        self.input(CML.staff_num, cheles21, "教职工号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def staff_num_success1(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15745152126", "手机号定位输入")
        self.input(CML.staff_num, cheles20, "教职工号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def staff_num_success2(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13900790058", "手机号定位输入")
        self.input(CML.staff_num, cheles19, "教职工号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def education_info_click(self):
        self.add_teacher_click()
        self.click(CML.education_info, "学历信息定位点击")

    def first_education(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13867403314", "手机号定位输入")
        self.click(CML.first_education, "第一学历下拉框定位")
        self.click(CML.undergraduate_course, "本科定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def first_university_error(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15148002943", "手机号定位输入")
        self.input(CML.first_university, big_string, "第一学历毕业院校定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def first_university_success(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13901604358", "手机号定位输入")
        self.input(CML.first_university, cheles200, "第一学历毕业院校定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def first_professional_error(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15897245924", "手机号定位输入")
        self.input(CML.first_professional, big_string, "第一学历专业定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def first_professional_success(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15733824284", "手机号定位输入")
        self.input(CML.first_professional, cheles200, "第一学历专业定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def first_degree_graduation_time_input(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13562070917", "手机号定位输入")
        self.input(CML.first_degree_graduation_time, '2020-09-16', "入学日期定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def first_degree_graduation_time_click(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15223310576", "手机号定位输入")
        self.click(CML.first_degree_graduation_time, "入学日期下拉框点击")
        while True:
            year = self.get_text(CML.year, "年标签定位取值")
            month = self.get_text(CML.month, "月标签定位取值")
            if year == "2020 年":
                break
            else:
                self.click(CML.before_year, "前一年点击")
            if month == "6 月":
                break
            else:
                self.click(CML.before_month, "上一月点击")
        self.click(CML.day, "日定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def first_degree_click(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15171961632", "手机号定位输入")
        self.click(CML.first_degree, "第一学历下拉框定位点击")
        self.click(CML.master_degree, "硕士定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_click(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13511588105", "手机号定位输入")
        self.click(CML.highest_degree, "最高学历下拉框定位点击")
        self.click(CML.doctor, "博士定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_graduation_time_input(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '程咬金', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13747192048", "手机号定位输入")
        self.input(CML.highest_degree_graduation_time, '2020-09-16', "最高学历下拉框定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_graduation_time_click(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15007234856", "手机号定位输入")
        self.click(CML.highest_degree_graduation_time, "最高学历毕业时间下拉框点击")
        self.click(CML.before_year, "前一年点击")
        self.click(CML.before_month, "上一月点击")
        self.click(CML.day, "日定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_professional_error(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15702317591", "手机号定位输入")
        self.input(CML.highest_degree_professional, big_string, "最高学历专业定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_professional_success(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15208616869", "手机号定位输入")
        self.input(CML.highest_degree_professional, cheles200, "最高学历专业定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_graduate_school_error(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15714866183", "手机号定位输入")
        self.input(CML.highest_degree_graduate_school, big_string, "最高学历毕业院校定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def highest_degree_graduate_school_success(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15881795475", "手机号定位输入")
        self.input(CML.highest_degree_graduate_school, cheles200, "最高学历毕业院校定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def auxiliary_info_click(self):
        self.add_teacher_click()
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")

    def health_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15790612578", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.health, "健康状况定位点击")
        self.click(CML.fair_or_weak, "一般或软弱定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def maritial_status_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15018518402", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.marital_status, "婚姻状况定位点击")
        self.click(CML.married, "已婚定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def graduated_normal_true_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13619833747", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.graduated_normal_true, "全日制师范类专业定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def year_of_employment_input(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15214748975", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.input(CML.year_of_employment, '2020-07-01', "参加工作年月定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def year_of_employment_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13585276350", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.year_of_employment, "参加工作年月定位点击")
        self.click(CML.before_year, "前一年点击")
        self.click(CML.before_month, "上一月点击")
        self.click(CML.day, "日定位选择")
        self.click(CML.sure, "确定按钮点击定位")

    def join_special_training_click(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13960128373", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.join_special_training, "特教专业培养培训")
        self.click(CML.sure, "确定按钮点击定位")

    def join_special_education_certificate(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15768252706", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.join_special_education_certificate, "特教专业培养培训")
        self.click(CML.sure, "确定按钮点击定位")

    def info_technology_capability(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13763626949", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.info_technology_capability, "信息技术能力定位点击")
        self.click(CML.skilled, "熟练定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def free_normal_student(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15200939664", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.no_free_normal_student, "不属于免费师范生定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def grassroots_service_projects(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15100928430", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.grassroots_service_projects, "是否参加基层服务项目定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def backbone_teacher(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13613965478", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.backbone_teacher, "是否县级以上骨干教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def psychological_teacher(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15782497591", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.psychological_teacher, "是否心理健康教育教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def special_teacher(self):
        self.add_teacher_click()
        self.input(CML.name, '德莱文', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13768632107", "手机号定位输入")
        self.click(CML.auxiliary_info, "教职工个人辅助信息点击展开")
        self.click(CML.special_teacher, "是否特级教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def upload_pic_error1(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, webp_path, "修改头像定位上传")

    def upload_pic_error2(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, big_path, "修改头像定位上传")

    def upload_pic_error3(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, video_path, "修改头像定位上传")

    def upload_pic_success1(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, facepic_2MB, "修改头像定位上传")

    def upload_pic_success2(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, getFile_png, "修改头像定位上传")

    def upload_pic_success3(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, bmp, "修改头像定位上传")

    def upload_pic_success4(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, general_path, "修改头像定位上传")

    def upload_pic_success5(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, cover_pic, "修改头像定位上传")

    def upload_pic_success6(self):
        self.add_teacher_click()
        self.upload_file(CML.upload_pic, cover_pic, "修改头像定位上传")
        self.input(CML.name, '光辉', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13950673121", "手机号定位输入")
        self.click(CML.sure, "确定按钮定位点击")

    def perfect_info_click(self):
        self.click(CML.perfect_info, "完善信息定位点击")

    def perfect_info_alter(self):
        self.name_success3()
        self.click(CML.perfect_info, "完善信息定位点击")
        sleep(1)
        self.input(CML.name, "牛魔", "姓名输入框定位输入")
        self.click(CML.sure, "确定按钮定位点击")

    def departure_click(self):
        sleep(1)
        self.click(CML.departure, "离职定位点击")

    def click_unsure(self):
        self.click(CML.quxiao, "取消点击")

    def departure_sub(self):
        self.name_success3()
        self.click(CML.departure1, "离职定位点击")
        self.click(CML.contract_relationship, "合同关系定位点击")
        self.click(CML.l1, "合同期满，个人要求解除劳动合同")
        self.click(CML.sure, "确定按钮定位点击")
        self.click(CML.tips, "系统提示信息点击确定")

    def retired_click(self):
        self.name_success3()
        self.career_manage_click()
        self.click(CML.retired, "退休定位点击")

    def retired_sub(self):
        self.name_success3()
        self.click(CML.retired, "退休定位点击")
        self.click(CML.retired_type, "退休类型定位点击")
        self.click(CML.l2, "退休定位点击")
        self.click(CML.sure, "确定按钮定位点击")
        self.click(CML.tips, "系统提示信息点击确定")

    def find_by_name_fuzzy(self):
        self.career_manage_click()
        sleep(1)
        self.input(CML.find_box, "李", "查询输入框定位输入")

    def find_by_name_precise(self):
        self.name_success3()
        sleep(1)
        self.slowly_input(CML.find_box, "亚瑟", "查询输入框定位输入")
        sleep(1)

    def find_by_phone_fuzzy(self):
        self.career_manage_click()
        sleep(1)
        self.slowly_input(CML.find_box, "135", "查询输入框定位输入")

    def find_by_phone_precise(self):
        self.name_success3()
        sleep(1)
        self.slowly_input(CML.find_box, "13000000012", "查询输入框定位输入")

    def find_by_id_fuzzy(self):
        self.career_manage_click()
        self.slowly_input(CML.find_box, "610", "查询输入框定位输入")

    def find_by_id_precise(self):
        self.career_manage_click()
        self.slowly_input(CML.find_box, "610427199208100040", "查询输入框定位输入")

    def find_by_error_string(self):
        self.career_manage_click()
        self.input(CML.find_box, "hdusah", "查询输入框定位输入")

    def find_by_error_space(self):
        self.career_manage_click()
        self.input(CML.find_box, " ", "查询输入框定位输入")

    def fulltime_teacher1(self):
        self.add_teacher_click()
        self.input(CML.name, '张翼德', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.staff_members, "教辅人员定位点击")
        self.input(CML.phone, "15624783552", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def fulltime_teacher2(self):
        self.add_teacher_click()
        self.input(CML.name, '张玄德', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.staff_members, "教辅人员定位点击")
        self.input(CML.phone, "15134783552", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def fulltime_teacher3(self):
        self.add_teacher_click()
        self.input(CML.name, '张胖德', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.staff_members, "教辅人员定位点击")
        self.input(CML.phone, "15154783552", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def category_faculty_screen1(self):
        self.fulltime_teacher1()
        self.fulltime_teacher2()
        self.fulltime_teacher3()
        sleep(1)
        self.click(CML.category_faculty_screen, "教职工类别筛选框定位点击")
        self.click(CML.staff_members, "教辅人员定位点击")
        sleep(1)
        text = self.get_text(CML.num, "获取列表数量标签")
        num1 = eval(text[text.find(' '):text.rfind(' ')])
        return num1

    def get_staff_members_num(self):
        self.click(CML.category_faculty_screen, "教职工类别筛选框定位点击")
        self.click(CML.staff_members, "教辅人员定位点击")
        sleep(1)
        text = self.get_text(CML.num, "获取列表数量标签")
        num2 = eval(text[text.find(' '):text.rfind(' ')])
        return num2

    def external_personnel1(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '黄子轩', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.external_personnel, "外聘人员定位点击")
        self.input(CML.phone, "15524783552", "手机号定位输入")
        self.click(CML.title, "职称下拉框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.highest_degree, "最高学历下拉框定位点击")
        self.click(CML.doctor, "博士定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def external_personnel2(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '黄子轩', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.external_personnel, "外聘人员定位点击")
        self.input(CML.phone, "15511183552", "手机号定位输入")
        self.click(CML.title, "职称下拉框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.highest_degree, "最高学历下拉框定位点击")
        self.click(CML.ben, "本科定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def external_personnel3(self):
        self.add_teacher_click()
        self.input(CML.name, '黄子凡', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.external_personnel, "外聘人员定位点击")
        self.input(CML.phone, "15522283552", "手机号定位输入")
        self.click(CML.sure, "确定按钮点击定位")

    def category_faculty_screen2(self):
        self.external_personnel1()
        self.external_personnel2()
        self.external_personnel3()
        sleep(1)
        self.click(CML.category_faculty_screen, "教职工类别筛选框定位点击")
        self.click(CML.external_personnel, "外聘人员定位点击")

    def title1(self):
        self.add_teacher_click()
        self.input(CML.name, '黄子凡', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.external_personnel, "外聘人员定位点击")
        self.input(CML.phone, "15522283552", "手机号定位输入")
        self.click(CML.title, "职称下拉框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def title2(self):
        self.add_teacher_click()
        self.input(CML.name, '黄子涛', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "15512343552", "手机号定位输入")
        self.click(CML.title, "职称下拉框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def title3(self):
        self.add_teacher_click()
        self.input(CML.name, '黄子轩', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.staff_members, "教辅人员定位点击")
        self.input(CML.phone, "15556783552", "手机号定位输入")
        self.click(CML.title, "职称下拉框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def title_screen1(self):
        self.title1()
        sleep(1)
        self.title2()
        sleep(1)
        self.title3()
        sleep(1)
        self.click(CML.title_screen, "职称筛选框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        sleep(1)
        text = self.get_text(CML.num, "获取列表数量标签")
        num2 = eval(text[text.find(' '):text.rfind(' ')])
        return num2

    def get_title_screen_num(self):
        self.click(CML.title_screen, "职称筛选框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        sleep(1)
        text = self.get_text(CML.num, "获取列表数量标签")
        num1 = eval(text[text.find(' '):text.rfind(' ')])
        return num1

    def degree1(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '胡小胖1', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13943801681", "手机号定位输入")
        self.click(CML.highest_degree, "最高学历下拉框定位点击")
        self.click(CML.doctor, "博士定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def degree2(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '胡小胖2', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13212345521", "手机号定位输入")
        self.click(CML.highest_degree, "最高学历下拉框定位点击")
        self.click(CML.doctor, "博士定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def degree3(self):
        self.add_teacher_click()
        self.education_info_click()
        self.input(CML.name, '胡小胖3', "名称输入框定位输入")
        self.click(CML.category_faculty, '教职工类别定位点击')
        self.click(CML.fulltime_teacher, "专任教师定位点击")
        self.input(CML.phone, "13243215521", "手机号定位输入")
        self.click(CML.highest_degree, "最高学历下拉框定位点击")
        self.click(CML.doctor, "博士定位点击")
        self.click(CML.sure, "确定按钮点击定位")

    def screen_group1(self):
        self.external_personnel1()
        self.external_personnel2()
        sleep(1)
        self.input(CML.find_box, "黄子轩", "查询输入框定位输入")
        self.click(CML.category_faculty_screen, "教职工类别筛选框定位点击")
        self.click(CML.external_personnel, "外聘人员定位点击")
        self.click(CML.title_screen, "职称筛选框定位点击")
        self.click(CML.primary_teachers, "一级教师定位点击")
        self.click(CML.degree_screen, "学历筛选框定位点击")
        self.click(CML.doctor, "博士定位点击")
        sleep(1)

    def batch_delete(self):
        self.name_success3()
        self.add_teacher_click()
        self.phone_success()
        sleep(2)
        self.click(CML.span1, "勾选列表第一个")
        self.click(CML.span2, "勾选列表第二个")
        self.click(CML.batch_delete, "点击批量删除")
        self.click(CML.continue_del, "点击继续删除")
        self.click(CML.check_know, "勾选我已知晓")
        self.click(CML.sure_dle, "点击确认删除")



